﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using iLangl.BusinessModel.Actions;
using iLangl.Transport.Communication;
using iLangl.Transport.Communication.Mockups;

using iLangl.Transport;
using System.IO;
using iLangl.BusinessModel.Managers;

namespace iLangl.Tests.TPActions
{
	[TestClass]
	public class GetLanguagesTest : BaseTest
	{
		
		

		[TestMethod]
		public void GetLanguagesT()
		{
			SwitchToILanglSideForTP();

			GetLanguages action = new GetLanguages();
			//Languagewire CompanyId 
			ActionManager.Instance.PrepareAction(TestSettings.LanguageWireCompanyId, action);
			
			action.Send();

			Assert.IsNotNull(action.Languages);

			Assert.IsTrue(action.Languages.Count > 0);
		}

		
	}
}
